package com.lenovo.dll.nebula.vod.parse;

import android.net.Uri;
import android.provider.BaseColumns;


public class Constant{
	public static final String AUTHORITY = "com.lenovo.dll.nebula.vod.searchProvider";
//	public static final Uri CATEGORY_CACHE_URI = Uri
//		.parse("content://com.lenovo.dll.nebula.vod.cacheProvider/categoryCache");
//	public static final Uri CATEGORY_CACHE_URI = 
//		Uri.parse("content://com.lenovo.dll.nebula.vod.service.content/secondcategory");
	
	public static final Uri SEARCH_CACHE_URI = Uri
		.parse("content://com.lenovo.dll.nebula.vod.cacheProvider/searchCache");
	
    public static class SecondCategory {

        public static final Uri CONTENT_URI = Uri.parse(
        		"content://com.lenovo.dll.nebula.vod.service.content/secondcategory");

        public static String _ID = BaseColumns._ID;

        public static String CATEGORY_CODE = "category_code";

        public static String SECOND_CATEGORY_CODE = "second_category_code";

        public static String SECOND_CATEGORY_NAME = "second_category_name";

        public static String SECOND_CATEGORY_COUNT = "second_category_count";
    }
	
	public static final int SEARCH = 1;
	public static final int SUGGEST = 2;
	
		public static final String KEYWORD = "keyword";
		public static final String SEARCH_METHOD = "searchMethod";
		public static final String PAGE_INDEX = "pageIndex";
		public static final String PAGE_SIZE = "pageSize";

		public static final String MEDIA_ID = "id";
		public static final String MEDIA_NAME = "name";
		public static final String MEDIA_CATEGORY = "category";
		public static final String MEDIA_TYPE = "type";
		public static final String MEDIA_ACTOR = "actor";
		public static final String MEDIA_DIRECTOR = "director";
		public static final String MEDIA_IMAGE_URL = "imageUrl";
		
		public static final String RESULT = "result";
	
	public static final String SUGGESTION = "suggestion";
	
	//temp
	public static final String EPG_SERVER_ADDRESS = "http://tvepg.bbtv.cn/tv";
	public static final String IMAGE_SERVER_ADDRESS = "http://tvpic.bbtv.cn";
//	public static final String SEARCH_URL = "http://10.0.2.2:8080/Search/search";
	public static final String SEARCH_URL = EPG_SERVER_ADDRESS + "/Service/SearchPrograms";
//	public static final String CATEGORY_URL = "http://10.0.2.2:8080/Search/category";
	public static final String SUGGESTION_URL = "http://10.0.2.2:8080/levod/levod?method=get_suggest&";
	public static final String CATEGORY_URL = EPG_SERVER_ADDRESS + "/Service/QueryCategory";
	public static final String METADATA_URL = EPG_SERVER_ADDRESS + "/Service/QueryProgramee";
	
	
	public static final String VALUE_USER_ID = "LENOVOTES000001";
	public static final String VALUE_USER_GROUP = "DEMO_GROUP";//DEMO_GROUP
	public static final String VALUE_TV_PROFILE = "";
	public static final String VALUE_USER_TOKEN = "5n9ScQdgaFTI0y1z5AB2nNz1w7JA44NK";
	public static final String VALUE_SEARCH_METHOD = "111111111111";
	public static final String VALUE_SEARCH_TYPE = "1111111111111111";
	public static final String VALUE_WITH_DETAIL = "1";
	public static final String VALUE_DETAIL_TYPE = "2";
	public static final String VALUE_PAGE_INDEX = "1";
	public static final String VALUE_PAGE_SIZE = "20";
	
	
	
	public static final String PARAM_USER_ID = "UserID";
	public static final String PARAM_USER_GROUP = "UserGroup";
	public static final String PARAM_TV_PROFILE = "TVProfile";
	public static final String PARAM_USER_TOKEN = "UserToken";
	public static final String PARAM_KEYWORDS = "Keywords";
	public static final String PARAM_SEARCH_METHOD = "SearchMethod";
	public static final String PARAM_SEARCH_TYPE = "SearchType";
	public static final String PARAM_CATEGORY_CODE = "CategoryCode";
	public static final String PARAM_WITH_DETAIL = "Withdetail";
	public static final String PARAM_DETAIL_TYPE = "DetailType";
	public static final String PARAM_PAGE_INDEX = "PageIndex";
	public static final String PARAM_PAGE_SIZE = "PageSize";
	
	public static final String PARAM_SUGGEST_KEYWORD = "key";
	public static final String PARAM_SUGGEST_PAGE_INDEX = "page_index";
	public static final String PARAM_SUGGEST_PAGE_SIZE = "page_size";
	
	public static final String LOG_TAG_VOD = "VOD";
	public static final String LOG_TAG_VOD_SEARCH = "VOD_SEARCH";
	public static final String LOG_TAG_VOD_CATEGORY = "VOD_CATEGORY";
	public static final String LOG_TAG_VOD_THREAD_POOL = "VOD_THREAD_POOL";
	
	public static final int TIMEOUT_CONNECTION = 30000;
	public static final int TIMEOUT_READ = 30000;
	
}
